public class J2411071 {
    public static void main(String[] args) {
        Integer a = new Integer(10);//自动拆箱
        int b = a;
        System.out.println(b);

        //显示拆箱 拆箱为自己指定的元素
        int c = a.intValue();
        System.out.println(c);

        double d = a.doubleValue();
        System.out.println(d);

        Integer m = 127;
        Integer n = 127;
        System.out.println(m == n);

        Integer i = 128;
        Integer j = 128;
        System.out.println(i == j);
    }
    public static void main1(String[] args) {
        int a = 10;
        Integer b = a;//自动装箱
        System.out.println(b);

        Integer c = Integer.valueOf(a);//显示装箱
        System.out.println(c);
    }
}
